how to handle files and folders in html